package com.google.android.gms.common.internal;

import android.accounts.Account;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.Feature;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Class;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Constructor;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Field;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Param;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Reserved;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.VersionField;
import o.aou;
import o.aox.e;
import o.apc;
import o.aph;

@KeepForSdk
@Class(creator = "GetServiceRequestCreator")
@Reserved({9})
public class GetServiceRequest extends AbstractSafeParcelable {
    public static final Creator<GetServiceRequest> CREATOR = new aph();
    @Field(id = 10)
    Feature[] ʻ;
    @Field(id = 11)
    Feature[] ʼ;
    @Field(id = 3)
    private int ʽ;
    @Field(id = 8)
    Account ˊ;
    @Field(id = 12)
    private boolean ˊॱ;
    @Field(id = 7)
    Bundle ˋ;
    @Field(id = 4)
    String ˎ;
    @Field(id = 6)
    Scope[] ˏ;
    @Field(defaultValue = "0", id = 13)
    private int ͺ;
    @Field(id = 5)
    IBinder ॱ;
    @VersionField(id = 1)
    private final int ॱॱ;
    @Field(id = 2)
    private final int ᐝ;

    @Constructor
    public GetServiceRequest(@Param(id = 1) int i, @Param(id = 2) int i2, @Param(id = 3) int i3, @Param(id = 4) String str, @Param(id = 5) IBinder iBinder, @Param(id = 6) Scope[] scopeArr, @Param(id = 7) Bundle bundle, @Param(id = 8) Account account, @Param(id = 10) Feature[] featureArr, @Param(id = 11) Feature[] featureArr2, @Param(id = 12) boolean z, @Param(id = 13) int i4) {
        this.ॱॱ = i;
        this.ᐝ = i2;
        this.ʽ = i3;
        if ("com.google.android.gms".equals(str)) {
            this.ˎ = "com.google.android.gms";
        } else {
            this.ˎ = str;
        }
        if (i < 2) {
            Account account2 = null;
            if (iBinder != null) {
                account2 = aou.ˎ(e.ˋ(iBinder));
            }
            this.ˊ = account2;
        } else {
            this.ॱ = iBinder;
            this.ˊ = account;
        }
        this.ˏ = scopeArr;
        this.ˋ = bundle;
        this.ʻ = featureArr;
        this.ʼ = featureArr2;
        this.ˊॱ = z;
        this.ͺ = i4;
    }

    public void writeToParcel(Parcel parcel, int i) {
        int ॱ = apc.ॱ(parcel);
        apc.ॱ(parcel, 1, this.ॱॱ);
        apc.ॱ(parcel, 2, this.ᐝ);
        apc.ॱ(parcel, 3, this.ʽ);
        apc.ˎ(parcel, 4, this.ˎ, false);
        apc.ˊ(parcel, 5, this.ॱ, false);
        apc.ˋ(parcel, 6, this.ˏ, i, false);
        apc.ˊ(parcel, 7, this.ˋ, false);
        apc.ˎ(parcel, 8, this.ˊ, i, false);
        apc.ˋ(parcel, 10, this.ʻ, i, false);
        apc.ˋ(parcel, 11, this.ʼ, i, false);
        apc.ˊ(parcel, 12, this.ˊॱ);
        apc.ॱ(parcel, 13, this.ͺ);
        apc.ˎ(parcel, ॱ);
    }
}
